package com.szmirren.entity.ams;

/**
 * @author Lin
 */
public class GenItem {
    /**
     * 表名
     */
    private String tableName;
    /**
     * 连接名,用来获取数据库连接和用户密码的
     */
    private String connName;
    /**
     * 中心名
     */
    private String centerName;
    private String modelName;
    private String boName;

    public GenItem(String tableName, String connName, String centerName, String modelName, String boName) {
        this.tableName = tableName;
        this.connName = connName;
        this.centerName = centerName;
        this.modelName = modelName;
        this.boName = boName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getConnName() {
        return connName;
    }

    public void setConnName(String connName) {
        this.connName = connName;
    }

    public String getCenterName() {
        return centerName;
    }

    public void setCenterName(String centerName) {
        this.centerName = centerName;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getBoName() {
        return boName;
    }

    public void setBoName(String boName) {
        this.boName = boName;
    }

    public String getMetaSQL() {
        return "SELECT * FROM " + tableName + " WHERE ROWNUM < 1";
    }

}
